﻿using System.Diagnostics;
using System.IO;

namespace cryptcompress
{
    public static class Crypt 
    {
        public static void File(string sourceFileName, string targetFileName, string pwd)
        {
            string meldung;
            CryptCompress cryptCompress = new CryptCompress();
            meldung = cryptCompress.FileCrypt(sourceFileName, pwd);
            System.IO.File.Move(sourceFileName + ".dnpcrypt", targetFileName);
            Trace.TraceInformation(meldung);
        }
    }
}
